/**
 * 
 */
package com.bhprod.comatule;

import com.bhprod.comatule.db.DBDataSource;

import android.app.Application;

/**
 * @author Joseph Beaufils
 * 
 */
public class MainApplication extends Application {

	/**
	 * @see android.app.Application#onCreate()
	 */
	@Override
	public void onCreate() {
		super.onCreate();

		DBDataSource.getInstance().open(getApplicationContext());
	}

	/**
	 * @see android.app.Application#onTerminate()
	 */
	@Override
	public void onTerminate() {
		super.onTerminate();

		DBDataSource.getInstance().close();
	}

}
